# CMake 最低版本要求
cmake_minimum_required(VERSION 3.10)
 
# 工程名
project(LinuxPeripDemo)

# 编译参数
SET(CMAKE_C_COMPILER "aarch64-linux-gcc")
SET(CMAKE_CXX_COMPILER "aarch64-linux-g++")
set(CMAKE_CXX_FLAGS_RELEASE "-O1")
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_STANDARD 11)
 
# 添加目录到头文件搜索路径
include_directories(
    ${PROJECT_SOURCE_DIR}/inc/clocker
    ${PROJECT_SOURCE_DIR}/inc/camera_source
)

# 添加模块路径
add_subdirectory(${PROJECT_SOURCE_DIR}/inc/clocker)
add_subdirectory(${PROJECT_SOURCE_DIR}/inc/camera_source)
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
add_subdirectory(${PROJECT_SOURCE_DIR}/tst)
